<?php
/** .-------------------------------------------------------------------
 * |  Software: [HDPHP framework]
 * |      Site: www.hdphp.com  www.hdcms.com
 * |-------------------------------------------------------------------
 * |    Author: 向军 <2300071698@qq.com>
 * |    WeChat: aihoudun
 * | Copyright (c) 2012-2019, www.houdunwang.com. All Rights Reserved.
 * '-------------------------------------------------------------------*/

namespace app\admin\controller;


use houdunwang\request\Request;
use system\model\Admin;

class Entry extends Common
{
    public function __construct()
    {

        $this->auth();
    }

    public function index()
    {
//        加载模板
      return View::make();
    }
    public  function  changePassword(Admin $admin){
if(IS_POST){
   return $admin->changePassword(Request::post());
}
      return view();
    }
}